package com.vf.user.domain.VO;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
@ApiModel(value = "用户微信小程序注册VO")
public class UserAppletRegisterVO {

    @NotNull(message = "昵称不能为空")
    @Length(max = 20, min = 2, message = "昵称长度必须为2-20位")
    @ApiModelProperty(value = "昵称")
    private String nickName;

    @Pattern(regexp = "^(((ht|f)tps?):\\/\\/)?([^!@#$%^&*?.\\s-]([^!@#$%^&*?.\\s]{0,63}[^!@#$%^&*?.\\s])?\\.)+[a-z]{2,6}\\/?", message = "头像格式不正确")
    @ApiModelProperty(value = "头像")
    private String avatar;

    @NotNull(message = "用户身份认证不能为空")
//    @Pattern(regexp = "^1[3|4|5|6|7|8|9][0-9]\\d{8}$", message = "手机号格式错误")
    @ApiModelProperty(value = "用户唯一身份认证")
    private String uuid;
}
